package com.example.finalwork
import android.os.Bundle
import androidx.activity.ComponentActivity
import androidx.activity.compose.setContent
import androidx.lifecycle.viewmodel.compose.viewModel
import com.example.finalwork.pojo.GameViewModel


import com.example.finalwork.ui.GameScreen
import com.example.finalwork.ui.theme.FinalworkTheme

class MainActivity1 : ComponentActivity() {
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        // 锁定横屏
        setContent {
            FinalworkTheme {
                val viewModel = viewModel<GameViewModel>()
                GameScreen(
                    viewModel = viewModel
                )
            }
        }
    }
}
